package com.link.base.base.project.service;

import com.link.base.base.approval.model.Flow;
import com.link.base.base.project.model.AcceptanceList;
import com.link.core.basic.service.BasicService;

import java.util.List;

/**
 * 项目承接单
 *
 * @author 王昊
 * @date 2020-10-13 14:01:06
 */
public interface  AcceptanceListService extends BasicService<AcceptanceList> {

    /**
     * 承接单提交审批
     * @param entity
     * @throws Exception
     */
    public void acceptanceListSubmit(AcceptanceList entity) throws Exception;

    /**
     * 承接单提交审批结果
     * @param flow
     * @param arg1
     * @param arg2
     * @param arg3
     * @param arg4
     * @param arg5
     * @throws Exception
     */
    public void apprAcceptanceList(Flow flow, String arg1, String arg2, String arg3, String arg4, String arg5) throws Exception;

    /**
     * 年度新项目承接管理表 拉平数据
     * @param entity
     * @return
     */
    List<AcceptanceList> projectUndertakingReport(AcceptanceList entity) throws Exception;

    /**
     * 项目承接实绩零件类型销售额报表（柱状图）
     * 根据日期范围查询承接单零件销售额并加和
     * @param entity
     * @return
     * @throws Exception
     */
    List queryAllByDate(AcceptanceList entity) throws Exception;

    /**
     * 项目承接实绩主机厂销售额报表（柱状图）
     * 根据日期范围查询承接单主机厂销售额并加和
     * @param entity
     * @return
     * @throws Exception
     */
    List queryAllByDateEnginee(AcceptanceList entity) throws Exception;
}